package com.ruoyi.job.task;

import cn.hutool.core.date.DateUtil;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.system.api.RemoteClassaiService;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ruoyi.common.core.utils.StringUtils;

/**
 * 培训课程定时任务
 * 
 * @author lcj
 * @date 2025-06-21
 */
@Slf4j
@Component("pxTask")
public class PxTask {

    @Autowired
    private RemoteClassaiService classaiService;

    public void pxMessage() {
        log.info("课后作业提醒开始:"+ DateUtil.now());
        classaiService.addHomeWorkMeaage(SecurityConstants.INNER);
        log.info("课后作业提醒结束:"+ DateUtil.now());
    }
}
